package com.zoe.onelink.upms.common.constants;


/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2018</p>
 * <p>公司: 智业软件</p>
 *
 * @author LinHongKai
 * @date 2022-03-11 14:00
 */
public class SystemConstants {

    public static SsoModeEnum ssoMode = SsoModeEnum.REDIS_DIFFERENT;

    // 微服务编码
    public static final String SERVICE_CPDE = "1000";

    // 启用
    public static final String VALID_FLAG_ENABLE = "0";

    // 禁用
    public static final String VALID_FLAG_DISABLED = "1";

    // 逻辑未删除
    public static final String IS_DELETED_FALSE = "0";

    // 逻辑删除
    public static final String IS_DELETED_TRUE = "1";

    public static final String REST_TEMPLATE_PARAM_NAME = "resp";

    public static final String REST_TEMPLATE_PARAM_VALUE = "rt";



    public static final String DEFAULT_CLIENT_ID = "upms";

    public static final String DEFAULT_CLIENT_SECRET = "zoesoft123456";

    public static final String DEFAULT_CLIENT_GRANT_TYPE = "password,app,refresh_token,authorization_code,client_credentials";

    public static final String DEFAULT_CLIENT_SCOPE = "all";

    public static final String DEFAULT_USER_USERNAME = "admin";

    /**
     * 默认密码为123456，因为前端上传密码时会进行MD5加密后再上传，所以这边的值直接为MD5('123456')
     */
    public static final String DEFAULT_USER_PASSWORD = "e10adc3949ba59abbe56e057f20f883e";

    public static final String ANONYMOUS_USER_USERNAME = "anonymousUser";

    public static final String UPMS_WEB_PRIFIX = "/upms-web";

    /**
     * sortNo的步长
     */
    public static final Long SORT_NO_STEP_LENGTH = 100000L;
}
